
import { checkForm } from './formRuler'
// isBoolean:true, // 是否为Boolean类型, 参数是否必须为boolen类型，不是根据options个数判断，是根据后台字段类型要求判断
const lineConfig = [
  {
    value: '',
    type: 'title',
    id: '',
    children: [
      {
        value: '',
        placeholder: '请输入',
        param: 'name',
        rule: {
          required: true,
          trigger: ["blur"],
          validator: checkForm,
          msg1: '请输入节点名称!',
          msg2: '',
          api: "",
          key: 'siteDomain',
          params: {}, //校验传参
        },
        label: "节点名称",
        extra: '',
        beforeText: '',
        marginLeft: 0.01,
        afterText: '',
        type: 'textInput',
        associated: '',
        associatedValue: '',
      },
      {
        value: '',
        placeholder: '请选择',
        param: 'actionCode',
        rule: {
          required: true,
          validator: checkForm,
          trigger: ["change"],
          msg1: '请选择动作类型',
          msg2: '',
          api: "",
          key: 'siteDomain',
          params: {}, //校验传参
        },
        label: "动作类型",
        title: '',
        extra: '',
        beforeText: '',
        afterText: '',
        width: 304,
        type: 'multipleSelect',
        options: [{ label: "通过", value: 'agree' }, { label: "不通过", value: 'disagree' },],
        mode: 'single',
        associated: '',
        associatedValue: '',
        VIF: { value: true },
      },
      {
        value: '基础设置',
        type: 'justTitle',
        associated: '',
        associatedValue: '',
        VIF: { value: true },
      },
      {
        value: [],
        placeholder: '',
        param: 'notifyTypes',
        rule: {
          required: false,
          validator: checkForm,
          trigger: ["blur"],
          msg1: '',
          msg2: '',
          api: "",
          key: 'siteDomain',
          params: {}, //校验传参
        },
        label: "通过后通知下一审核节点审核员方式",
        size: 'small',
        extra: '',
        beforeText: '',
        afterText: '',
        type: 'checkbox-group',
        checkboxOptions: [
          { label: '系统站内信', value: '1', params: 'smsNotify' },
          {
            label: '短信通知', value: '2', params: 'infoNotify',
            tips: '若用户手机信息未录入或错误，短信将不能正常发送；手机短信服务开启后才能发送短信'
          },
          {
            label: '邮件通知', value: '3', params: 'mailNotify',
            tips: '若用户邮箱未录入或错误，邮件将不能正常发送；邮件服务开启后才能发送邮件'
          },
        ],
        associated: '',
        associatedValue: '',
        VIF: { value: true },
      },
      {
        value: false,
        param: 'requireReviewComment',
        rule: {
          required: true,
          validator: checkForm,
          trigger: ["change"],
          msg1: '',
          msg2: '',
          api: "",
          key: 'siteDomain',
          params: {}, //校验传参
        },
        label: "审批意见是否必填",
        type: 'radio',
        options: ['是', '否'],
        isBoolean: true, // 是否为Boolean类型
        VIF: { value: true },
      },

    ]
  },

]
export { lineConfig }